package mixed;

import java.util.Set;

public class GetSysVar {

	public static void main(String[] args) {

		/*String env=System.getenv().toString();
		for (String s : paths) {
			System.out.print(no+++":");
			System.out.println(s);
		}
		System.out.println();*/
		String[] paths=System.getenv("path").split(";");
		int no=1;
//		Set<String> envNames=;
		no=1;
		for (String name : System.getenv().keySet()) {
			System.out.println(no+++": "+name+"="+System.getenv(name));
		}
//		System.out.println(env.substring(env.toLowerCase().indexOf("java")));
	}

}
